import request from '@/axios/axios.js'

// 储位查询列表
export const basedataStorageAllApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataStorage/getAll',
        data: params
    })
}
// 设备查询列表
export const basedataEquipmentAllApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataEquipment/getAll',
        data: params
    })
}
// 夹具查询列表
export const storageMaterialAllApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataTooling/getAll',
        data: params
    })
}
// 质检查询列表
export const storageMaterialsAllApi = (params) => {
    return request({
        method: 'post',
        url: '/api/storageMaterial/getAll',
        data: params
    })

}
// 物料查询列表
export const basedataMaterialAllApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataMaterial/getAll',
        data: params
    })
}

//工装绑定
export const editResourceApi = (params) => {
    return request({
        method: 'put',
        url: '/api/basedataProcedureResource/update',
        data: params
    })
}
//工装新增
export const addResourceApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataProcedureResource/save',
        data: params
    })
}
// 删除
export const deleteResourceApi = (params) => {
    return request({
        method: 'delete',
        url: '/api/basedataProcedureResource/delete',
        data: params
    })
}
//工装查询
export const productResourceApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataProcedureResource/getPage',
        data: params
    })
}